package com.video.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
/**
 * (User)表实体类
 *
 * @author baoshuai
 * @since 2022-12-14 21:02:16
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("user")
public class User {
    //用户id
    @TableId(type = IdType.AUTO)
    private Long id;
    //手机号
    private String mobile;
    //初始生成的唯一标识号
    private String foxId;
    //昵称，初始同fox_id
    private String nickname;
    //头像
    private String userImg;
    //生日
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    //国家
    private String country;
    //省份
    private String province;
    //城市
    private String city;
    //个人简介
    private String description;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;



}

